Region-based processing of predicted pixels

ABSTRACT

A method for decoding a compressed video data sequence containing one or more coded pixel blocks. The compressed video sequence is buffered. Prediction information for each of the coded pixel blocks is reviewed. One or more groups of coded pixel blocks are formed based on the reviewed prediction information such that the coded pixel blocks within a given group have similar prediction dependencies and/or at least do not depend on a reconstructed pixel within a group of received pixel blocks to enable parallel decoding. The formed groups are scheduled for processing and subsequently decoded to produce a decoded video data sequence.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 14/723,264, filed May 27, 2015, still pending, which is a continuation of U.S. patent application Ser. No. 13/562,229, filed Jul. 30, 2012, now U.S. Pat. No. 9,049,451, which is a continuation of U.S. patent application Ser. No. 11,462,449, filed Aug. 4, 2006, now U.S. Pat. No. 8,233,535, which claims priority to U.S. Provisional Patent Application No. 60/737,772, filed Nov. 18, 2005, herein incorporated by reference in their entireties.

BACKGROUND OF THE INVENTION Field of the Invention

The present invention generally relates to video encoders. More specifically, the present invention provides the grouping of coded pixel blocks having similar prediction dependencies to more quickly decode a compressed video data sequence.

Background Art

FIG. 1 is a functional block diagram of an encoder-decoder system 100. The encoder-decoder system 100 includes an encoder 102 and a decoder 104. The encoder 102 receives source video data from a video source 106. The encoder 102 codes the source video data into a compressed bit stream for transmission to the decoder 104 over a communication channel 108. The communication channel 108 can be a real-time delivery system such as a communication network (e.g., a wireless communication network) or a computer network (e.g., the Internet). Alternatively, the communication channel 106 can be a storage medium (e.g., an electrical, optical or magnetic storage device) that can be physically distributed. Overall, the topology, architecture and protocol governing operation of the communication channel 108 is immaterial to the present discussion unless specifically identified herein.

The decoder 104 receives and decodes the compressed bit stream to reproduce the source video data. The decoder 104 can then provide the reproduced source video data to a video display device 110. FIG. 1 shows a single decoder 104 but is not limited as such. That is, replicas or copies of the compressed bit stream can be provided to multiple decoders located at different locations. In this way, the source video data can be encoded once and distributed to the decoders for decoding at different times as is conventional or well known in the art.

The encoder 102 and the decoder 104 can be implemented in hardware, software or some combination thereof. For example, the encoder 102 and/or the decoder 104 can be implemented using a computer system. FIG. 2A is a simplified functional block diagram of a computer system 200. The computer system 200 can be used to implement the encoder 102 or the decoder 104 depicted in FIG. 1.

As shown in FIG. 2A, the computer system 200 includes a processor 202, a memory system 204 and one or more input/output (I/O) devices 206 in communication by a communication ‘fabric.’ The communication fabric can be implemented in a variety of ways and may include one or more computer buses 208, 210 and/or bridge devices 212 as shown in FIG. 2A. The I/O devices 206 can include network adapters and/or mass storage devices from which the computer system 200 can receive compressed video data for decoding by the processor 202 when the computer system 200 operates as a decoder. Alternatively, the computer system 200 can receive source video data for encoding by the processor 202 when the computer system 200 operates as an encoder.

The computer system 200 can implement a variety of video coding protocols such as, for example, any one of the Moving Picture Experts Group (MPEG) standards (e.g., MPEG-1, MPEG-2, or MPEG-4) and/or the International Telecommunication Union (ITU) H.264 standard. Most coding standards are designed to operate across a variety of computing platforms. Accordingly, many coding standards find application in feature rich computing devices (e.g., personal computers or gaming devices) and also in feature poor computing devices (e.g., single digital signal processing (DSP) devices).

To accommodate the broad variety of computing devices, most coding standards are designed with unsophisticated computer systems in mind. Specifically, many coding standards are designed to be implemented the same way on a feature rich system as they are on a feature poor system. Feature poor systems typically have limited memory and processor capabilities. Accordingly, due to the design of many coding standards, the improved memory and processor capabilities of a feature rich system are not fully exploited. For example, during the coding of an Intra coded frame (I-frame), macroblock data may be coded with reference to other macroblocks in the same frame. A prediction reference (e.g., a prediction vector) can be generated to specify a location from within previously coded macroblocks from which a prediction will be made. This technique can create a long chain of predictions, requiring macroblocks to be retrieved from memory and then decoded in a serial fashion (e.g., one macroblock at a time).

FIG. 2B illustrates the contents of the memory system 204 depicted in FIG. 2A. As shown in FIG. 2B, the memory system 204 can include coded video data 220, decoded reference frames 222 and a currently decoded frame 224 that is partially decoded. The decoded reference frames 222 can include previous reference frames 226 and future reference frames 228. Previous reference frames 226 are frames that occur earlier in time than the current frame being decoded by the processor 202. Future reference frames 228 are frames that occur later in time than the current frame being decoded by the processor 202. A currently decoded frame 224 can depend on previous reference frames 226 and/or future reference frames 228.

In feature poor computing devices, the decoded reference frames 222 needed by the processor 202 to decode a current frame 224 may take several memory cycles to retrieve since the bandwidth of a memory system 204 in a feature poor computing device is generally limited. Further, due to the serial nature of decoding the coded data 220, different sets of decoded reference frames 222 may be retrieved for each coded video frame 220. This can result in the same decoded reference frames 222 being retrieved several times as the coded video data 220 is decoded.

As previously mentioned, feature rich computing devices typically possess much greater memory capacity and memory bandwidth in comparison to feature poor devices. Accordingly, these devices are able to access, retrieve and process data in quantities much larger than a single macroblock at a time. Theoretically, the performance of a feature rich computing device implementing a coding standard is much greater than what is currently achieved. Performance is limited due to the serial nature of decoding. In particular, performance is mainly limited by (a) the processor being idle when macroblock data is being read in from a memory device or I/O device because the processor needs prediction data contained in data yet to be retrieved; and (b) the memory device or I/O device being idle because the processor is busy decoding data that requires large amounts of processing.

Accordingly, what is needed is a processing system capable of exploiting the improved processor and memory capabilities of feature rich computing devices to more quickly decode video data compressed according to conventional coding techniques. In particular, the processing system should be capable of reading and decoding multiple chunks of video data (e.g., multiple macroblocks or multiple blocks of pixels) whenever possible.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings illustrate the present invention and, together with the description, further serve to explain the principles of the invention and to enable one skilled in the pertinent art to make and use the invention.

FIG. 1 is a functional block diagram of an encoder-decoder system.

FIG. 2A is a simplified functional block diagram of a computer system.

FIG. 2B illustrates the contents of a memory system depicted in FIG. 2A.

FIG. 3 provides a flowchart illustrating a method for grouping pixel blocks together so that the group can be processed together more quickly according to an aspect of the present invention.

FIG. 4 depicts a frame of video data to illustrate data decoding according to an aspect of the present invention.

FIG. 5 illustrates a portion of a coded video sequence generated according to an aspect of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Embodiments of the present invention provide systems, apparatuses and methods whereby groups of coded pixel blocks having similar prediction dependencies are defined and efficiently scheduled for decoding. In this regard, the present invention enables a compressed video data sequence to be decoded in less time and with less power by leveraging improved processor and memory capabilities. A group of coded pixel blocks having similar prediction dependencies is understood to mean coded pixel blocks that can share a motion vector or reference frame or that do not depend on a reconstructed pixel block within the group.

FIG. 3 provides a flowchart 300 illustrating a method for grouping pixel blocks together (e.g., grouping pixel blocks together that have similar prediction dependencies) so that the group can be processed together more quickly, according to an aspect of the present invention.

At step 302, a processor of a decoder can buffer channel data in a memory. The channel data can be compressed video data. The processor and memory can be components of a computer system operating as decoder. The implemented decoder can operate according to or be operable with various video compression standards such as, for example, any one of the Moving Picture Experts Group (MPEG) standards (e.g., MPEG-1, MPEG-2, or MPEG-4) and/or the International Telecommunication Union (ITU) H.264 standard. Overall, the compression scheme used by the decoder is immaterial to the present discussion unless specifically identified herein.

At step 304, the processor begins a new group of pixel blocks (e.g., macroblocks) at an arbitrary location and examines the pixel blocks within the buffer. Typically, a new group of pixel blocks begins immediately after the previous group.

At step 306, a pixel block can be retrieved. The current pixel block can be considered the ‘i^(th)’ pixel block.

At step 308, the coding parameters of the i^(th) pixel block can be examined to determine if the current pixel block can be decoded in parallel with the other pixel blocks in the group. If the current pixel block does not depend on a reconstructed pixel within the group, then the current pixel block can be added to the current group at step 310. Steps 306 and 308 can then be repeated for additional pixel blocks remaining in the buffer. If the current pixel block does depend on a reconstructed pixel within the group, then the group can be closed at step 312 without including the current pixel block. If the current pixel block does depend on another pixel block within the group (i.e., a reconstructed pixel with the group), then the current pixel block can be considered a non-qualifying pixel block.

Further, at step 312, the group formed can be scheduled for decoding in the manner most efficient for the processor. That is, one or more groups of pixel blocks generated according to the previous steps can be retrieved or read in bulk. Thereafter, the one or more groups of pixel blocks can be processed as additional channel data is fed into the buffer since the one or more groups of pixel blocks do not depend on or require data yet to be retrieved. In this way, the processor and memory system can operate simultaneously, thereby decreasing the time needed to decode a compressed video stream.

In general, the generated groups of coded pixel blocks can be retrieved in any manner. That is, each bulk read operation can include only a portion of a single group (e.g., if a given group is large) or multiple groups (e.g., if some of the included groups are small). This allows any given group of coded pixel block to be retrieved and processed in a chunk size that may be larger, smaller or equal to the group size.

Various groupings of pixel blocks are possible using the method illustrated by the flowchart 300. The groupings can be made on a temporal and/or spatial basis. For example, a group can comprise adjacent intra-frame pixel blocks that can be predicted (and therefore decoded) without using decoded values within the group. A group can also comprise adjacent inter-frame pixel blocks that can be predicted without using decoded values within the group. In this way, it is possible to group together pixel blocks that use multiple reference frames and/or multiple motion vectors. Further, a group can comprise adjacent inter-frame pixel blocks that share one reference frame and/or one motion vector. These grouping decisions can be made, for example, at step 308 using information on the current pixel block retrieved at step 306.

FIG. 2A, representing a feature rich computing device, can be used to implement an embodiment of the present invention. The computer system 200 can read from any memory system or location (e.g., a hard drive, cache, etc.) when decoding data. Further, these retrieval operations can result in the reading of large amounts of information at a time and is not limited to retrieving or reading a single pixel blocks at a time. Accordingly, an encoder of the present invention can retrieve required decode reference frames 222 in bulk in order to process a group of pixel blocks. For example, all of the decoded reference frames 222 needed to decoded a scheduled group of coded pixel blocks can be retrieved in one memory cycle so as to decrease the time to decode the group of pixel blocks. The ability to more quickly gather all of the information needed for decoding, and to decode efficiently in groups, enables an encoder of the present invention to reduce a time needed to decode a compressed video sequence.

FIG. 4 depicts a frame of video data 400 to illustrate data decoding according to an aspect of the present invention. The frame 400 is divided into a plurality of pixel blocks 402. For each pixel block shown, there can be a coded representation of the pixel block stored in a decode buffer. A decoder of the present invention can process the pixel blocks in some kind of order. For example, the decoder can process the pixel blocks serially (e.g., raster scan facsimile).

In FIG. 4, the pixel block group 404 (i.e., those pixel blocks 402 containing an ‘X’) is depicted as having been decoded. Specifically, the decoder has already read and decoded the coded data representing the pixel block group 404. According to an aspect of the present invention, the decoder defines a new pixel block group 420. The new pixel block group 420 can be defined by the decoder first examining the prediction references of each of the pixel blocks. If the prediction references of an individual pixel block depend on the decoded pixel blocks 404, the pixel block can be added to the new group 420. The new group 420 can be closed or end when it is determined that a currently examined pixel block refers to another pixel block within the new group 420. The newly defined group 420, and therefore the constituent pixel blocks of the group 420, can then be scheduled for decoding.

In an embodiment of the present invention, a bit stream syntax is introduced to identify a group of pixel blocks having similar prediction dependencies. The bit stream syntax and groupings can be generated by an encoder of the present invention. FIG. 5 illustrates a portion of a coded video sequence 500 generated according to an aspect of the present invention. The portion of the coded video sequence 500 can include a header 502 and a payload 504. The portion of the coded video sequence 500 can comprise a portion of a bit stream representing the coded video sequence parsed into portions as shown in FIG. 5. The header 502 can include information regarding the contents of the payload 504. The payload 504 includes a number of pixel blocks (e.g., macroblocks) 506-1 through 506-N. The header 502 is shown prepended to the payload 504 in FIG. 5 but can alternatively be appended to the payload 504.

The pixel blocks 506-1 through 506-N can be grouped together according to prediction dependencies. The pixel blocks 506-1 through 506-N can be grouped together in a number of ways. For example, the payload 504 can be (a) a group of adjacent inter pixel blocks that share a common motion vector and/or reference frame; (b) a group of adjacent inter pixel blocks that can be predicted without using decoded values within the group; (c) a group of adjacent intra pixel blocks that can be predicted without using decoded values within the group; or (d) a croup of pixel blocks that do not depend on any reconstructed pixel from the group of pixel blocks. In this way, the present invention allows the formation of a group of pixel blocks for decoding that do not share a motion vector or a reference frame. The payload 502 can include a variety of information on the characteristics of the payload 504 and/or its constituent components. For example, the payload 504 can include information indicating the type of grouping carried by the payload 504 as well as the number of pixel blocks 506 within the payload. A header 502 can be associated with each payload 504 comprising the compressed bit stream and can be considered a group identifier of the payload 504. Further, the compressed bit stream can comprise payloads 504 of different types distributed throughout the compressed bit stream in any manner.

An encoder of the present invention can generate the payload group 504 and the header 502 as shown in FIG. 4. For example, after receiving and coding an uncompressed video sequence to produce a coded video sequence, an encoder of the present invention can scan the coded video sequence to form multiple payload groups 504 and associated headers 502 to form a formatted coded video sequence. The formatted coded video sequence can then be provided to a decoder of the present invention. The decoder can process and decode the formatted and coded video sequence quickly to reproduce the original uncompressed video sequence since the coded video sequence is provided in chunks having similar prediction dependencies and/or at least do not depend on a reconstructed pixel within a group of received pixel blocks. Accordingly, the decoder can more efficiently schedule retrieval and processing of the coded and formatted video sequence stored, for example, in an associated decoder buffer.

As a two-step process, generation of a formatted coded video sequence can be used to optimize the original coding of the video sequence. The generation of a formatted coded video sequence can also be produced using a one-step process whereby an encoder of the present invention can encode and format a video sequence in a serial fashion. An encoder of the present invention may also adjust the coding and formatting process based on the capabilities of a remote decoder that may receive the coded and formatted video data sequence. Further, an encoder of the present invention may be capable of exploiting one or more side channels to send information (e.g., user-defined data and/or encoding/formatting data) to a decoder. In this way, an encoder can provide a decoder with a coded video sequence formatted in such a way (with or without supplemental information) that it can be decoded more easily and more quickly.

CONCLUSION

While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example and not limitation. It will be apparent to one skilled in the pertinent art that various changes in form and detail can be made therein without departing from the spirit and scope of the invention. Therefore, the present invention should only be defined in accordance with the following claims and their equivalents. 

What is claimed is:
 1. A method for decoding a compressed video data sequence, comprising: buffering the compressed video sequence, the compressed video sequence comprising a plurality of coded pixel blocks; identifying, from a syntax element of the compressed video sequence, groups of adjacent blocks from the coded pixel blocks that share a common reference frame and can be decoded in parallel from each other; organizing the coded pixel blocks according to the groups based on the syntax element; scheduling decoding of the coded pixel blocks on a group-by-group basis; and decoding the groups of coded pixel blocks according to the group-by-group schedule to produce a decoded video data sequence, wherein the decoding of each pixel block in a group uses content from the common reference frame for the respective group.
 2. The method of claim 1, wherein one of the syntax elements identifies a group of coded pixel blocks that share a common motion vector, and the decoding of the respective group comprises decoding each pixel block in the group using the common motion vector.
 3. The method of claim 1, wherein one of the syntax elements identifies a group of coded pixel blocks that share a common reference frame, and the decoding of the respective group comprises decoding each pixel block in the group using content from the common reference frame.
 4. The method of claim 1, wherein one of the syntax elements identifies a group of inter-coded pixel blocks whose prediction during decoding does not rely on decoded values from other pixel blocks of the same group.
 5. The method of claim 1, wherein one of the syntax elements identifies a group of intra-coded pixel blocks whose prediction during decoding does not rely on decoded values from other pixel blocks of the same group.
 6. The method of claim 1, wherein at least one group comprises a plurality of spatially-adjacent pixel blocks.
 7. The method of claim 1, wherein at least one group comprises a plurality of temporally-adjacent pixel blocks.
 8. A non-transitory computer-readable memory having stored thereon a plurality of instructions for decoding a compressed video sequence comprising one or more coded pixel blocks, which when executed by a processor, cause the processor to: buffer the compressed video sequence, the compressed video sequence comprising a plurality of coded pixel blocks; identify, from a syntax element of the compressed video sequence, groups of adjacent blocks from the coded pixel blocks that share a common reference frame and can be decoded in parallel from each other; organize the coded pixel blocks according to the groups based on the syntax element; schedule decoding of the coded pixel blocks on a group-by-group basis; and decode the groups of coded pixel blocks according to the group-by-group schedule to produce a decoded video data sequence, wherein the decoding of each pixel block in a group uses content from the common reference frame for the respective group.
 9. The memory of claim 8, wherein one of the syntax elements identifies a group of coded pixel blocks that share a common motion vector, and the decoding of the respective group comprises decoding each pixel block in the group using the common motion vector.
 10. The memory of claim 8, wherein one of the syntax elements identifies a group of coded pixel blocks that share a common reference frame, and the decoding of the respective group comprises decoding each pixel block in the group using content from the common reference frame.
 11. The memory of claim 8, wherein one of the syntax elements identifies a group of inter-coded pixel blocks whose prediction during decoding does not rely on decoded values from other pixel blocks of the same group.
 12. The memory of claim 8, wherein one of the syntax elements identifies a group of intra-coded pixel blocks whose prediction during decoding does not rely on decoded values from other pixel blocks of the same group.
 13. The memory of claim 8, wherein at least one group comprises a plurality of spatially-adjacent pixel blocks.
 14. The memory of claim 8, wherein at least one group comprises a plurality of temporally-adjacent pixel blocks.
 15. A method for encoding a video sequence, comprising: coding data from a video source according to a coding protocol, wherein the coded data identifies by a syntax element of the coding protocol, groups of adjacent blocks from the coded pixel blocks that share a common reference frame and can be decoded in parallel from each other and the encoding of the respective group comprises decoding each pixel block in the group using content from the common reference frame; transmitting the coded data to a decoder device.
 16. The method of claim 15, wherein one of the syntax elements identifies a group of coded pixel blocks that share a common motion vector, and the encoding of the respective group comprises decoding each pixel block in the group using the common motion vector.
 17. The method of claim 15, wherein one of the syntax elements identifies a group of coded pixel blocks that share a common reference frame, and the encoding of the respective group comprises decoding each pixel block in the group using content from the common reference frame.
 18. The method of claim 15, wherein one of the syntax elements identifies a group of inter-coded pixel blocks whose prediction does not rely on decoded values from other pixel blocks of the same group.
 19. The method of claim 15, wherein one of the syntax elements identifies a group of intra-coded pixel blocks whose prediction does not rely on decoded values from other pixel blocks of the same group.
 20. The method of claim 15, wherein at least one group comprises a plurality of spatially-adjacent pixel blocks.
 21. The method of claim 15, wherein at least one group comprises a plurality of temporally-adjacent pixel blocks.
 22. The method of claim 15, wherein the coding varies based on capabilities of the decoder device to which the coded data is transmitted.
 23. A method for decoding a compressed video data sequence, comprising: buffering the compressed video sequence, the compressed video sequence comprising a plurality of coded pixel blocks; identifying, from a syntax element of the compressed video sequence, groups of the coded pixel blocks that share a common reference frame and can be decoded in parallel from each other; scheduling decoding of the coded pixel blocks on a group-by-group basis; and decoding the groups of coded pixel blocks according to the group-by-group schedule to produce a decoded video data sequence, wherein the decoding of each pixel block in a group uses content from the common reference frame for the respective group. 